C1.Silverlight.RichTextBox.5 Assembly > C1.Silverlight.RichTextBox.Documents Namespace > C1TextPointer Class > GetPositionAtOffset Method : GetPositionAtOffset(Int32,Predicate<Tag>) Method |
'Declaration Public Overloads Function GetPositionAtOffset( _ ByVal offset As System.Integer, _ ByVal tagFilter As System.Predicate(Of Tag) _ ) As C1TextPointer
public C1TextPointer GetPositionAtOffset( System.int offset, System.Predicate<Tag> tagFilter )
This method can be used to linearly traverse a C1Document tree.
Start and end tags in each C1TextElement count as items for the traverse, for instance if the position is in an element with children, a position at offset 1 will be the C1TextElement.ContentStart of the C1TextElement where this C1TextPointer is positioned.
If this C1TextPointer is positioned in a C1Run then it traverses the text of the C1Run.